package core.modules.communication.test;

import org.jboss.remoting.InvokerLocator;
import org.jboss.remoting.transport.*;

public class Server {

	public Server() throws Exception {

		InvokerLocator myLocator = new InvokerLocator("bisocket://localhost:8888");
		Connector connector = new Connector();
		connector.setInvokerLocator(myLocator.getLocatorURI());
		connector.start();

		connector.addInvocationHandler("MYSYS", new MyInvocationHandler());

	}

	public static void main(String[] args) throws Exception {
		new Server();

	}

}
